/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Header */
.header {
  background-color: #b71c1c;
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  width: 60px;
  height: 60px;
}

.header h1 {
  font-size: 20px;
  line-height: 1.2;
}

.header h1 span {
  font-size: 14px;
  font-weight: normal;
}

body {
  background: url("Background.png") no-repeat center center/cover;
  min-height: 100vh;
  position: relative;
  /* overflow: hidden;  Removed to allow scrolling */
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit; /* gagamitin yung background image ni body */
  filter: blur(10px);   /* adjust mo 4px–10px depende sa gusto mong labo */
  transform: scale(1.1); /* para hindi magputol sa gilid habang naka-blur */
  z-index: -1;
}

/* Form container */
.form-container {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
}

h2 {
  /* Updated h2 styling for CONFIRMATION and User Management */
  margin: 20px 0 15px;
  color: #333; /* Iba pang kulay para sa 'CONFIRMATION' */
  border-bottom: 2px solid #ccc; /* Iba pang border para sa 'CONFIRMATION' */
  padding-bottom: 5px;
  text-align: center; /* Center ang "CONFIRMATION" title */
  font-size: 24px;
}

/* Specific styling for 'User Management' h2 */
.form-container form > h2:first-child {
  color: #b71c1c;
  border-bottom: 2px solid #b71c1c;
  text-align: left;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  outline: none;
  border-color: #b71c1c;
  box-shadow: 0 0 5px rgba(183, 28, 28, 0.3);
}

.form-group select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  min-height: 45px;
  background-color: white;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #b71c1c;
  box-shadow: 0 0 5px rgba(183, 28, 28, 0.3);
}

.full-width {
  grid-column: 1 / -1;
}

/* Button Container for Submit and Cancel */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.submit-btn {
  padding: 12px 30px; 
  background: #6c757d; /* Same gray as cancel button initially */
  border: none;
  color: white;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 120px;
  transition: background-color 0.3s ease; /* Smooth transition */
}

.submit-btn:hover:not(:disabled) {
  background: #5a6268; /* Darker gray on hover when not ready */
}

/* Submit button when DISABLED (fields empty) */
.submit-btn:disabled {
  background: #cccccc; /* Light gray when disabled */
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-btn:disabled:hover {
  background: #cccccc;
}

/* Submit button when form is complete */
.submit-btn.btn-ready:not(:disabled) {
  background: #b71c1c; /* BFP red when form is complete */
}

.submit-btn.btn-ready:not(:disabled):hover {
  background: #8b0000; /* Darker red on hover when ready */
}

.cancel-btn {
  padding: 12px 30px;
  background: #6c757d;
  border: none;
  color: white;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 120px;
}

.cancel-btn:hover {
  background: #5a6268;
}

/* Original .submit-btn was full width; I removed the centering margin. */
/* Kung gusto mo ng isang button lang, gamitin ang orihinal na submit-btn styling */
.form-container form > .submit-btn {
  display: block;
  width: 100%;
  max-width: 220px;
  padding: 12px;
  background: #b71c1c;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  margin: 15px auto 0; /* centers the button */
}

.form-container form > .submit-btn:hover {
  background: #8b0000;
}

/* Consent Form for Data Collection Styling */
.consent-section {
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border: 2px solid #b71c1c;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.consent-section h3 {
  color: #b71c1c;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #b71c1c;
  padding-bottom: 10px;
}

.consent-content {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
}

.consent-content p {
  margin-bottom: 15px;
  text-indent: 20px;
}

.consent-content p:last-child {
  margin-bottom: 0;
  font-weight: 500;
}

/* Consent Checkbox Styling */
.consent-checkbox {
  margin-top: 20px;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-checkbox input[type="checkbox"] {
  margin-top: 2px;
  transform: scale(1.2);
  accent-color: #b71c1c;
  flex-shrink: 0;
}

.consent-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
  text-align: justify;
}

.consent-checkbox:hover {
  background: #f8f9fa;
  border-color: #b71c1c;
}

/* Certificate-Specific Fields Styles */
.certificate-fields {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border: 2px solid #DC2626;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
}

.certificate-fields h3 {
  color: #DC2626;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #DC2626;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.checkbox-label:hover {
  background-color: #f3f4f6;
}

.checkbox-label input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: #DC2626;
}

.checkbox-label span {
  user-select: none;
}

/* Responsive adjustments for certificate fields */
@media (max-width: 768px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .certificate-fields {
    padding: 16px;
  }
  
  .certificate-fields h3 {
    font-size: 16px;
  }
}